package org.jeecg.modules.quartz.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.quartz.entity.QuartzJob;

/**
 * @Description: 定时任务在线管理
 * @Author: jeecg-boot
 * @Date:  2019-01-02
 * @Version: V1.0
 */
public interface QuartzJobMapper extends BaseMapper<QuartzJob> {

	public List<QuartzJob> findByJobClassName(@Param("jobClassName") String jobClassName);

    @SqlParser(filter = true)
    IPage<QuartzJob> findPage(Page<QuartzJob> page, QueryWrapper<QuartzJob> queryWrapper);
    @SqlParser(filter = true)
    @Select("select * from sys_quartz_job where id = #{id}")
    QuartzJob getById(@Param("id") String id);
    @SqlParser(filter = true)
    boolean removeById(@Param("id") String id);
}
